$f: 19.2;

.home {
  .section1 {
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.00) 0%, #F5F5F5 100%);
    padding: 160/$f+vw 240/$f+vw;
    display: flex;
    justify-content: space-between;

    .l {
      width: 640/$f+vw;

      .t {
        color: rgba(0, 0, 0, 0.9);
        font-size: 20/$f+vw;
        width: 258/$f+vw;
        border-bottom: 2/$f+vw solid rgba(5, 18, 40, .6);
        padding-bottom: 4/$f+vw;
      }

      .t2 {
        margin: 40/$f+vw 0 21/$f+vw 0;
        color: rgba(0, 0, 0, 0.9);
        line-height: 1.5;
        font-size: 50/$f+vw;
        letter-spacing: 0.1px;
        font-family: "Montserrat";
        font-weight: 300;
      }

      .des {
        color: rgba(0, 0, 0, 0.6);
        font-size: 18/$f+vw;
        text-align: justify;
        line-height: 1.5;
      }
    }

    .r {
      overflow: hidden;

      img {
        width: 738/$f+vw;
        height: 456/$f+vw;
        object-fit: cover;
        border-radius: 20/$f+vw;
        transition: all 600ms ease-in-out;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }
      }
    }
  }

  .section2{
    margin: 160/$f+vw 240/$f+vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60/$f+vw 88/$f+vw;
    .item{
      width: 100%;
      background: #F5F5F5;
      border-radius: 20/$f+vw;
      .pic{
        overflow: hidden;
        img{
          width: 100%;
          display: block;
          object-fit: cover;
          height: 408/$f+vw;
          border-top-left-radius: 20/$f+vw;
          border-top-right-radius: 20/$f+vw;
          transition: all 600ms;
        }
      }
      .text{
        margin: 40/$f+vw;
        .p1{
          color: #000;
          font-size: 20/$f+vw;
          line-height: 1.3;
          font-weight: 500;
        }
        .des{
          margin-top: 20/$f+vw;
          color: rgba(0, 0, 0, 0.60);
          font-size: 16/$f+vw;
          line-height: 1.5;
        }
      }
      &:hover{
        .pic{
          img{
            transform: scale(1.05);
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      padding: 20px 5%;
      flex-direction: column;
      .l{
        width: 100%;
        .t{
          font-size: 20px;
          width: 80%;
          border-bottom: 2px solid rgba(5,18,40,0.6);
          padding-bottom: 4px;
        }
        .t2{
          margin: 20px 0;
          font-size: 24px;
          line-height: 1.3;
        }
        .des{
          font-size: 16px;
          line-height: 1.3;
          width: 100%;
        }
      }
      .r{
        width: 100%;
        margin-top: 20px;
        img{
          width: 100%;
          height: auto;
          border-radius: 20px;
        }
      }
    }
    .section2{
      margin: 60px 5%;
      grid-template-columns: repeat(1, 1fr);
      gap:20px;
      .item{
        border-radius: 20px;
        .pic{
          img{
            height: auto;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
          }
        }
        .text{
          margin: 20px;
          .p1{
            font-size: 18px;
          }
          .des{
            font-size: 16px;
            margin-top: 10px;
          }
        }
      }
    }
  }
}